import React from 'react';
import {
    Modal, Form, Input
} from 'antd'

const AddGonggaoModule = ({ addGonggaoModuleShow, setAddGonggaoModuleShow }) => {
    const [form] = Form.useForm()
    const {validateFields, resetFields} = form;
    const handleOk = () => {
        validateFields().then(values => {
        })
        // setAddGonggaoModuleShow(false);
    };

    const handleCancel = () => {
        resetFields()
        setAddGonggaoModuleShow(false);
    };
    return <Modal title="发布公告" visible={addGonggaoModuleShow} onOk={handleOk} onCancel={handleCancel}>
        <Form
            labelCol={{ span: 8 }}
            wrapperCol={{ span: 16 }}
            form = {form}
        >
            <Form.Item
                label="内容"
                name="lsMealDTO"
                rules={[{ required: true, message: '请输入内容!' }]}
            >
                <Input maxLength = {16}/>
            </Form.Item>
        </Form>
    </Modal>
}

export default AddGonggaoModule;